package com.usian.feign;

import com.usian.model.article.pojos.ApArticle;
import com.usian.model.article.pojos.ApArticleContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "leadnews-article")
public interface ArtcleFeign {

    @RequestMapping("/api/v1/article/selectAllArticle")
    public List<ApArticle> selectAllArticle();

    @RequestMapping("/api/v1/article_content/selectByArticleId/{articleId}")
    public ApArticleContent selectByArticleId(@PathVariable("articleId") Long articleId);


}
